package jiggle;


public abstract class ForceLaw extends JiggleObject {

	protected Graph graph;
	protected final double cap = Double.MAX_VALUE / 1000;
	
	//protected final boolean printDebugInfo = false;
	public boolean printDebugInfo = false;

	protected ForceLaw (Graph g) {graph = g;}

	// Vineet: no one calls methods below and changes field above (so might as well make it final
	//  for now for ease in understanding)
	//double getCap () {return cap;}
	//void setCap (double c) {cap = c;}

	
    /**
     * Applies the force to the cells in the graph (application happens on the
     * passed negativeGradient)
     * 
     * @param negativeGradient
     */
    public abstract void apply (double [][] negativeGradient);
}

